﻿using System;
using System.Web.UI.WebControls;
using System.Web.UI;
using System.ComponentModel;
using System.ComponentModel.Design;
using AjaxControlToolkit;

[assembly: System.Web.UI.WebResource("OpenPhotoAlbum.Controls.InplaceEditLabel.js", "text/javascript")]

namespace OpenPhotoAlbum.Controls
{
	[ClientScriptResource("OpenPhotoAlbum.Controls.InplaceEditLabel", "OpenPhotoAlbum.Controls.InplaceEditLabel.js")]
	public class InplaceEditLabel : ScriptControlBase
	{
		public InplaceEditLabel()
			: base(HtmlTextWriterTag.Span)
		{
			Text = string.Empty;
			IsEditing = false;
			OnClientTextChanged = string.Empty;
			ContextData1 = string.Empty;
			ContextData2 = string.Empty;
			IsMultiLine = false;
		}

		[ExtenderControlProperty]
		public string Text { get; set; }

		[ExtenderControlProperty]
		public bool IsEditing { get; set; }

		[ExtenderControlEvent(true)]
		public string OnClientTextChanged { get; set; }

		[ExtenderControlProperty]
		public string Save { get { return Resources.Strings.Save; } }

		[ExtenderControlProperty]
		public string Cancel { get { return Resources.Strings.Cancel; } }

		[ExtenderControlProperty]
		public string ContextData1 { get; set; }

		[ExtenderControlProperty]
		public string ContextData2 { get; set; }

		[ExtenderControlProperty]
		public string ContextData3 { get; set; }

		[ExtenderControlProperty]
		public bool IsMultiLine { get; set; }

        [ExtenderControlProperty]
        public string TooltipBehaviorId { get; set; }
	}
}